import state from './state'
import * as type from './type'

const reducer = (previousState = state , action) =>{
    let new_state = {...previousState}
    
    switch (action.type) {
        case type.GET_SELECT_RIGHTBOX:
            new_state.select = action.payload
            break;
    
        default:
            break;
    }
    return new_state
}

export default reducer